package cn.itcast.test;

import org.apache.shiro.crypto.hash.Md5Hash;


public class Encrypt {

	//高强度加密算法,不可逆
	public static String md5(String password, String salt){
		return new Md5Hash(password,salt,2).toString();
	}


	public static void main(String[] args) {
		String pwd = new Md5Hash("123456","lw@export.com",2).toString();
		System.out.println("72a7dc98f2ce9f5312a7267d88c965d1".equals(pwd));
	}


}
